home *** CD-ROM | disk | FTP | other *** search
- global stock, waste
-
- on mouseDown me
- global stock, waste, deals
- if member(sprite(me.spriteNum).memberNum).name = "backofcard" then
- puppetSound(3, "deal card")
- sprite(37).member = stock.cards[1].rank & "_" & stock.cards[1].suit
- if sprite(37).visible = 0 then
- sprite(37).visible = 1
- end if
- waste.append(new(script("card"), 37))
- stock.cards.deleteAt(1)
- if stock.cards.count = 0 then
- sprite(me.spriteNum).member = "stop"
- checklose()
- end if
- end if
- end
-